<template>
	<!-- 公告 -->
	<view id="warp">
		<!-- 自定义导航栏 -->
		<!-- <c-navBar title="公告" isSeat isPerch></c-navBar> -->
		<!-- <text>公告</text> -->
		<view class="navbar">
		</view>
		<view class="bg">
			<!-- 列表 -->
			<!-- <c-scroll-list ref="list" :api="getApi" :apiParams="apiParams" :option="option" @load="(res)=>(list=res)">
				<view class="list-box">
					<view class="list dis_sb" v-for="v in list.list" :key="v.id" @click="_to(v)">
						<image v-if="v.readFlag == 1" src="" mode=""></image>
						<image v-else src="" mode=""></image>
						<view class="">
							<p :class="v.readFlag==1?'p-w':'p'">{{v.title}}</p>
							<view class="dis_sb">
								<view :class="v.readFlag==1?'time-w':'time'">{{v.createTime}}</view>
								<view :class="v.readFlag==1?'status-w':'status'">{{v.readFlag==1?'已读':'未读'}}</view>
							</view>
						</view>
						
					</view>
			
				</view>
			</c-scroll-list> -->
			
			<view class="list-box">
				<view class="list disb" v-for="v in list" :key="v.id" @click="_to(v)">
					<!-- <image v-if="v.readFlag == 1" src="" mode=""></image>
					<image v-else src="" mode=""></image> -->
					<view class="">
						<p :class="v.readFlag==1?'p-w':'p'">{{v.title}}</p>
						<view class="dis_sb">
							<view :class="v.readFlag==1?'time-w':'time'">{{v.createTime}}</view>
							<view :class="v.readFlag==1?'status-w':'status'">{{v.readFlag==1?'已读':'未读'}}</view>
						</view>
					</view>
					
				</view>
						
			</view>
		</view>
		

	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					title:'公告标题',
					createTime:'创建时间',
					readFlag:1,
				},
				{
					title:'公告标题',
					createTime:'创建时间',
					readFlag:0,
				}],
				getApi: ''
			};
		},
		onShow() {
			setTimeout(() => {
				this.$refs.list.initList(true)
			});
		},
		methods: {
			_to(item) {
				
			}
		},
	}
</script>

<style lang="scss" scoped>
	#warp {
		position: relative;

		.navbar {
			width: 750rpx;
			height: 320rpx;
			// background: linear-gradient(180deg, #E6F5F4 0%, #FFFFFF 100%);
			position: fixed;
			z-index: 1;
			top: 0;

		}
		.bg{
			position: relative;
			z-index: 3;
		}
		.list-box {
			width: 672rpx;
			margin-left: 32rpx;

			.list {
				padding: 30rpx 0;
				box-sizing: border-box;
				border-bottom: 1rpx solid #E6E6E6;

				.p {
					width: 672rpx;
					font-size: 28rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #333333;
				}

				.p-w {
					font-size: 32rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;
				}

				.time-w {
					font-size: 24rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;
					margin-top: 12rpx;
				}

				.time {
					font-size: 24rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #666666;

				}

				.status {
					font-size: 24rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #333333;
				}

				.status-w {
					font-size: 24rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;
				}
			}
		}
	}
</style>
